
import javax.swing.*;
        import java.awt.*;
        import java.awt.event.ActionEvent;
        import java.awt.event.ActionListener;
public class Log extends JPanel implements ActionListener {
    private JButton backBtn;
    private Atmtest frame;
    @Override
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);

    }

    public Log(Atmtest frame){
        this.frame = frame;
        this.setLayout(null);
        this.setOpaque(false);

    }

    @Override
    public void actionPerformed(ActionEvent e) {
        if(backBtn == e.getSource()){
            frame.switchPanel("menu");
        }
    }
}